package com.qf.main.pharmacy.common.qo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
@author chengqiang
@Create 2024-02-19-9:26
@Description:
*/

/**
 * 订单商品
 */
@ApiModel(description="订单商品")
@Data
public class OrderMallQo {

    /**
     * 订单商品id
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "订单商品id")
    private Integer id;
    /**
     * 商品id
     */
    @TableField(value = "order_mall_id")
    @ApiModelProperty(value="商品id")
    private Integer orderMallId;

    /**
     * 商品名
     */
    @TableField(value = "order_mall_name")
    @ApiModelProperty(value="商品名")
    private String orderMallName;

    /**
     * 店铺号
     */
    @TableField(value = "shop_no")
    @ApiModelProperty(value = "店铺号")
    private Long shopNo;

    /**
     * 图片
     */
    @TableField(value = "order_img")
    @ApiModelProperty(value = "图片")
    private String orderImg;
    /**
     * 店铺名称
     */
    @TableField(value = "shop_name")
    @ApiModelProperty(value = "店铺名称")
    private String shopName;
    /**
     * 商品单价
     */
    @TableField(value = "order_mall_price")
    @ApiModelProperty(value="商品单价")
    private BigDecimal orderMallPrice;

    /**
     * 商品数量
     */
    @TableField(value = "order_mall_number")
    @ApiModelProperty(value="商品数量")
    private Integer orderMallNumber;
    /**
     * 订单状态(0未发货，1已发货，2交易完成)
     */
    @TableField(value = "order_mall_status")
    @ApiModelProperty(value = "订单状态(0未发货，1已发货，2交易完成)")
    private Integer orderMallStatus;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_NO = "order_no";

    public static final String COL_ORDER_MALL_ID = "order_mall_id";

    public static final String COL_ORDER_MALL_NAME = "order_mall_name";

    public static final String COL_ORDER_MALL_PRICE = "order_mall_price";

    public static final String COL_ORDER_MALL_NUMBER = "order_mall_number";
}
